import { Redirect } from 'umi'
export default function Login({location,children}: any) {
    return (
        <div style={{ height: '100%' }}>
			{ 
			    // 未登录时直跳内页面,需进行路由拦截
				location.pathname === '/' ? children : <Redirect to={'/'} />
			}
		</div>
    );
}